package com.yogee.topseller.activity;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.TabLayout;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentPagerAdapter;
import android.support.v4.content.ContextCompat;
import android.support.v4.view.ViewPager;
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import android.widget.Toast;

import com.yogee.core.base.BaseActivity;
import com.yogee.core.utils.ToastUtils;
import com.yogee.topseller.R;
import com.yogee.topseller.activity.base.HttpActivity;
import com.yogee.topseller.adapter.ChoseCardAdapter;
import com.yogee.topseller.adapter.NormalRecyclerViewAdapter;
import com.yogee.topseller.adapter.SortAdapter;
import com.yogee.topseller.adapter.SortAdapter1;
import com.yogee.topseller.bean.SelectBankByCaseBean;
import com.yogee.topseller.fragment.productdetail.AccountFragment;
import com.yogee.topseller.utils.TabLayoutUtil;
import com.yogee.topseller.utils.pinyinUtilis.ContactSortModel;
import com.yogee.topseller.utils.pinyinUtilis.EditTextWithDel;
import com.yogee.topseller.utils.pinyinUtilis.PinyinComparator;
import com.yogee.topseller.utils.pinyinUtilis.PinyinUtils;
import com.yogee.topseller.utils.pinyinUtilis.SideBar;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

import butterknife.BindView;

public class Demo extends BaseActivity implements NormalRecyclerViewAdapter.IonSlidingViewClickListener{

    @BindView(R.id.swipeRefreshLayout)
    SwipeRefreshLayout mSwipeRefreshLayout;
    @BindView(R.id.recycler_view)
    RecyclerView mRecyclerView;
    NormalRecyclerViewAdapter adapter;
    private static final int REFRESH_STATUS = 0;
    private int j = 0;
    private String TAG = "RecyclerViewDemo";

    @Override
    protected int getLayoutId() {
        return R.layout.activity_aaa;
    }

    @Override
    protected void initView() {
        mRecyclerView.setLayoutManager(new LinearLayoutManager(this));
        adapter = new NormalRecyclerViewAdapter(this);
        mRecyclerView.setItemAnimator(new DefaultItemAnimator());
        mRecyclerView.setAdapter(adapter);


    }

    @Override
    public void onItemClick(View view, int position) {
        Toast.makeText(Demo.this, "单击" + position, Toast.LENGTH_SHORT).show();
    }

    @Override
    public void onDeleteBtnCilck(View view, int position) {
        Toast.makeText(Demo.this, "单击" + position, Toast.LENGTH_SHORT).show();
    }
}
